projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f9e7df
)
gtk-demo: Set an accessible role
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 19 Oct 2020 16:56:50 +0000
(12:56 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 19 Oct 2020 16:56:50 +0000
(12:56 -0400)
Set the expected accessible role on the tagged entry
widget in the demo of the same name. Accessible tools
may decide to ignore widgets that have the wrong role,
so setting an appropriate role is important.
demos/gtk-demo/demotaggedentry.c
patch
|
blob
|
history
diff --git
a/demos/gtk-demo/demotaggedentry.c
b/demos/gtk-demo/demotaggedentry.c
index d75f49d76a84d0ea9817426b2f656be8705d3bf8..8d5c93edff14cf4795eb5943d9a64a781002eeeb 100644
(file)
--- a/
demos/gtk-demo/demotaggedentry.c
+++ b/
demos/gtk-demo/demotaggedentry.c
@@
-116,6
+116,7
@@
demo_tagged_entry_class_init (DemoTaggedEntryClass *klass)
gtk_widget_class_set_layout_manager_type (widget_class, GTK_TYPE_BOX_LAYOUT);
gtk_widget_class_set_css_name (widget_class, "entry");
+ gtk_widget_class_set_accessible_role (widget_class, GTK_ACCESSIBLE_ROLE_TEXT_BOX);
}
static GtkEditable *